/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.dedaletechnology.mrquizz.client;

import java.io.Serializable;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 *
 * @author developer
 */
public class LoginInfo implements Serializable {

  private boolean loggedIn = false;
  @NotNull
  private String loginUrl;
  @NotNull
  private String logoutUrl;
  @NotNull
  @Pattern(regexp="^[\\w\\.-]+@([\\w\\-]+\\.)+[A-Z]{2,4}$")
  private String emailAddress;
  @NotNull
  @Size(min=8,max=124)
  private String nickname;

  public boolean isLoggedIn() {
    return loggedIn;
  }

  public void setLoggedIn(boolean loggedIn) {
    this.loggedIn = loggedIn;
  }

  public String getLoginUrl() {
    return loginUrl;
  }

  public void setLoginUrl(String loginUrl) {
    this.loginUrl = loginUrl;
  }

  public String getLogoutUrl() {
    return logoutUrl;
  }

  public void setLogoutUrl(String logoutUrl) {
    this.logoutUrl = logoutUrl;
  }

  public String getEmailAddress() {
    return emailAddress;
  }

  public void setEmailAddress(String emailAddress) {
    this.emailAddress = emailAddress;
  }

  public String getNickname() {
    return nickname;
  }

  public void setNickname(String nickname) {
    this.nickname = nickname;
  }
}
